package com.zsc.wxm.ysh.anjo.es.feign.fallback;

import com.zsc.wxm.ysh.anjo.es.feign.ResourcesService;
import com.zsc.wxm.ysh.anjo.result.Result;
import com.zsc.wxm.ysh.anjo.service.base.model.es.dto.CrawlerDataDTO;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * 描述：服务降级
 *
 * @author playmaker
 * @since 2021/2/22 22:57
 */
@Slf4j
@Service
public class ResourcesServiceImpl implements ResourcesService {
    @Override
    public Result batchAddHouseData() {
        log.error("es爬虫定时任务调用房源服务超时");
        return Result.error("es爬虫定时任务调用房源服务超时");
    }

    @Override
    public Result addData(CrawlerDataDTO params) {
        log.error("调用楼盘服务addData超时");
        return Result.error("调用楼盘服务addData超时");
    }

    @Override
    public Result getEsDataVoById(Long id) {
        log.error("调用房源微服务getEsDataVoById超时");
        return Result.error("调用房源微服务超时");
    }
}
